home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / xulrunner / chrome / toolkit.jar / content / global / viewPartialSource.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-09-20  |  9.0 KB  |  183 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  4. <?xml-stylesheet href="chrome://global/content/viewSource.css" type="text/css"?> 
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  7. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  8.  
  9. <!DOCTYPE window [
  10. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  11. %brandDTD;
  12. <!ENTITY % sourceDTD SYSTEM "chrome://global/locale/viewSource.dtd" >
  13. %sourceDTD;
  14. <!ENTITY % findBarDTD SYSTEM "chrome://global/locale/findbar.dtd" >
  15. %findBarDTD;
  16. ]>
  17.  
  18. <window id="viewSource"
  19.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  20.         onload="onLoadViewPartialSource();"
  21.         onunload="onUnloadViewPartialSource();"
  22.         contenttitlesetting="true"
  23.         title="&mainWindow.title;" 
  24.         titlemodifier="&mainWindow.titlemodifier;" 
  25.         titlepreface=""
  26.         titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
  27.         windowtype="navigator:view-source"
  28.         width="500" height="300"
  29.         screenX="10" screenY="10"
  30.         persist="screenX screenY width height sizemode">
  31.  
  32.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  33.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  34.   <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  35.   <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  36.   <script type="application/x-javascript" src="chrome://global/content/viewSource.js"/>
  37.   <script type="application/x-javascript" src="chrome://global/content/viewPartialSource.js"/>
  38.   <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  39.   <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  40.  
  41.   <stringbundle id="viewSourceBundle" src="chrome://global/locale/viewSource.properties"/>
  42.   <stringbundle id="bundle_findBar" src="chrome://global/locale/findbar.properties"/>
  43.  
  44.   <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  45.   <command id="cmd_print" oncommand="PrintUtils.print();"/>
  46.   <command id="cmd_printpreview" oncommand="PrintUtils.printPreview(onEnterPP, onExitPP);"/>
  47.   <command id="cmd_pagesetup" oncommand="PrintUtils.showPageSetup();"/>
  48.   <command id="cmd_close" oncommand="window.close();"/>
  49.   <commandset id="editMenuCommands"/>
  50.   <command id="cmd_find" oncommand="onFindCmd();"/>
  51.   <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  52.   <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  53.   <command id="cmd_goToLine" oncommand="ViewSourceGoToLine();" disabled="true"/>
  54.   <command id="cmd_highlightSyntax" oncommand="highlightSyntax();"/>
  55.   <command id="cmd_wrapLongLines" oncommand="wrapLongLines()"/>
  56.   <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  57.   <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  58.   <command id="cmd_textZoomReset" oncommand="ZoomManager.prototype.getInstance().reset();"/>    
  59.  
  60.   <keyset id="editMenuKeys"/>
  61.   <keyset id="viewSourceKeys">
  62.     <key id="key_savePage" key="&savePageCmd.commandkey;" modifiers="accel" command="cmd_savePage"/>
  63.     <key id="key_print" key="&printCmd.commandkey;" modifiers="accel" command="cmd_print"/>
  64.     <key id="key_close" key="&closeCmd.commandkey;" modifiers="accel" command="cmd_close"/>
  65.     <key keycode="VK_ESCAPE" command="cmd_close"/>
  66.  
  67.     <key id="key_textZoomEnlarge" key="&textEnlarge.commandkey;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  68.     <key id="key_textZoomEnlarge2" key="&textEnlarge.commandkey2;" command="cmd_textZoomEnlarge" modifiers="accel"/>
  69.     <key id="key_textZoomReduce"  key="&textReduce.commandkey;" command="cmd_textZoomReduce" modifiers="accel"/>
  70.     <key id="key_textZoomReset" key="&textReset.commandkey;" command="cmd_textZoomReset" modifiers="accel"/>
  71.   </keyset>
  72.  
  73.   <popup id="viewSourceContextMenu">
  74.     <menuitem id="cMenu_findAgain"/>
  75.     <menuseparator/>
  76.     <menuitem id="cMenu_copy"/>
  77.     <menuseparator/>
  78.     <menuitem id="cMenu_selectAll"/>
  79.   </popup>
  80.  
  81.   <!-- Menu --> 
  82.   <toolbox id="viewSource-toolbox">
  83.     <menubar id="viewSource-main-menubar">
  84.  
  85.       <menu id="file_menu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
  86.         <menupopup id="filemenu-popup">
  87.           <menuitem key="key_savePage" command="cmd_savePage"
  88.                     label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;"/>
  89.           <menuitem command="cmd_pagesetup"
  90.                     label="&pageSetupCmd.label;" accesskey="&pageSetupCmd.accesskey;"/>
  91.           <menuitem command="cmd_printpreview"
  92.                     label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;"/>
  93.           <menuitem key="key_print" command="cmd_print"
  94.                     label="&printCmd.label;" accesskey="&printCmd.accesskey;"/>
  95.           <menuseparator/>
  96.           <menuitem key="key_close" command="cmd_close"
  97.                     label="&closeCmd.label;" accesskey="&closeCmd.accesskey;"/>
  98.         </menupopup>
  99.       </menu>
  100.  
  101.       <menu id="menu_edit">
  102.         <menupopup id="editmenu-popup">
  103.           <menuitem id="menu_undo"/>
  104.           <menuitem id="menu_redo"/>
  105.           <menuseparator/>
  106.           <menuitem id="menu_cut"/>
  107.           <menuitem id="menu_copy"/>
  108.           <menuitem id="menu_paste"/>
  109.           <menuitem id="menu_delete"/>
  110.           <menuseparator/>
  111.           <menuitem id="menu_selectAll"/>
  112.           <menuseparator/>
  113.           <menuitem id="menu_find"/>
  114.           <menuitem id="menu_findAgain"/>
  115.         </menupopup>
  116.       </menu>
  117.  
  118.       <menu id="menu_view" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  119.         <menupopup id="viewmenu-popup">
  120.           <menu id="viewTextZoomMenu" label="&menu_textSize.label;" accesskey="&menu_textSize.accesskey;">
  121.             <menupopup>                    
  122.               <menuitem id="menu_textEnlarge" command="cmd_textZoomEnlarge" 
  123.                         label="&menu_textEnlarge.label;" accesskey="&menu_textEnlarge.accesskey;"
  124.                         key="key_textZoomEnlarge"/>
  125.               <menuitem id="menu_textReduce" command="cmd_textZoomReduce" 
  126.                         label="&menu_textReduce.label;" accesskey="&menu_textReduce.accesskey;"
  127.                         key="key_textZoomReduce"/>
  128.               <menuseparator/>
  129.               <menuitem id="menu_textReset" command="cmd_textZoomReset"
  130.                         label="&menu_textReset.label;" accesskey="&menu_textReset.accesskey;"
  131.                         key="key_textZoomReset"/>
  132.             </menupopup>
  133.           </menu>
  134.           <menu id="charsetMenu"/>
  135.           <menuseparator/>
  136.           <menuitem id="menu_wrapLongLines" type="checkbox" command="cmd_wrapLongLines"
  137.                     label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;"/>
  138.           <menuitem type="checkbox" id="menu_highlightSyntax" command="cmd_highlightSyntax"
  139.                     label="&menu_highlightSyntax.label;" accesskey="&menu_highlightSyntax.accesskey;"/>
  140.         </menupopup>
  141.       </menu>
  142.     </menubar>  
  143.   </toolbox>
  144.  
  145.   <vbox id="appcontent" flex="1"
  146.         ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  147.  
  148.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
  149.              context="viewSourceContextMenu"/>
  150.  
  151.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  152.       <toolbarbutton id="find-closebutton" tooltiptext="&findCloseButton.tooltip;"
  153.                      oncommand="closeFindBar();"/>
  154.  
  155.       <label control="find-field" value="&find.label;"/>
  156.       <hbox id="find-field-container">
  157.         <textbox id="find-field" oninput="find(this.value);"
  158.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"
  159.                 oncompositionstart="onFindBarCompositionStart(event);"
  160.                 oncompositionend="onFindBarCompositionEnd(event);"/>
  161.       </hbox>
  162.       <toolbarbutton id="find-next" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  163.                      command="cmd_findAgain" disabled="true" accesskey="&findNext.accesskey;"/>
  164.       <toolbarbutton id="find-previous" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  165.                      command="cmd_findPrevious" disabled="true" accesskey="&findPrevious.accesskey;"/>
  166.       <toolbarbutton id="highlight"
  167.                      label="&highlight.label;"
  168.                      tooltiptext="&highlight.tooltip;"
  169.                      oncommand="toggleHighlight(!this.checked);
  170.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  171.                      type="checkbox" disabled="true"
  172.                      accesskey="&highlight.accesskey;"/>
  173.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  174.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  175.       <image id="find-status-icon"/>
  176.       <label id="find-status"/>
  177.     </toolbar>
  178.  
  179.  
  180.   </vbox>
  181.  
  182. </window>
  183.